import request from '@/utils/request'

// 查询手术单关联列表
export function listSurgeryform(query) {
  return request({
    url: '/manage/surgeryform/list',
    method: 'get',
    params: query
  })
}

// 查询手术单关联详细
export function getSurgeryform(surgeryFormId) {
  return request({
    url: '/manage/surgeryform/' + surgeryFormId,
    method: 'get'
  })
}

// 新增手术单关联
export function addSurgeryform(data) {
  return request({
    url: '/manage/surgeryform',
    method: 'post',
    data: data
  })
}

// 修改手术单关联
export function updateSurgeryform(data) {
  return request({
    url: '/manage/surgeryform',
    method: 'put',
    data: data
  })
}

// 删除手术单关联
export function delSurgeryform(surgeryFormId) {
  return request({
    url: '/manage/surgeryform/' + surgeryFormId,
    method: 'delete'
  })
}
